package com.epfuse.cloud.auth;

import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @ClassName Demo01
 * @Description TODO
 * @Author 孙峰
 * @Date 2022/10/26 14:39
 */
public class Demo01 {
 public static void main(String[] args) {
  PasswordEncoder passwordEncoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();

  System.out.println(passwordEncoder.matches("Mb4DWayomKg%3D", "$2a$10$RpFJjxYiXdEsAGnWp/8fsOetMuOON96Ntk/Ym2M/RKRyU0GZseaDC"));

 }
}
